package com.pine.sunshineelder.checkin.service;

import java.util.Map;

import com.pine.sunshineelder.checkin.ao.elder.ElderAddAo;
import com.pine.sunshineelder.checkin.ao.elder.ElderModAo;
import com.pine.sunshineelder.checkin.ao.elder.ElderModPasswordAo;
import com.pine.sunshineelder.checkin.vo.elder.ElderRegisterVo;
import com.pine.sunshineelder.common.dto.QueryResult;
import com.pine.sunshineelder.common.entity.ElderEntity;



public interface ElderService {
	/**
	 * 新增老人
	 */
	ElderEntity addElder(ElderAddAo ao) throws Exception;

	/**
	 * 删除老人
	 */
	void deleteElder(String id) throws Exception;

	/**
	 * 修改用户基本信息(全员修改)
	 * 
	 * @param id
	 * @param ao
	 * @throws Exception
	 */
	ElderEntity modifyElder(String id, ElderModAo ao) throws Exception;


	/**
	 * 修改用户密码
	 * 
	 * @param id
	 * @param ao
	 * @return
	 * @throws Exception
	 */
	void modifyPassword(String id, ElderModPasswordAo ao) throws Exception;
	/**
	 * 通过id查询
	 * */
	ElderEntity queryById(String id)throws Exception;

	/**
	 * 模糊分页查询
	 * 
	 * @param key
	 * @param pageNo
	 * @param pageSize
	 * @return
	 * @throws Exception
	 */
	QueryResult<ElderEntity> queryByKey(String key, Integer pageNo, Integer pageSize) throws Exception;
}
